import request from '@/axios'

export interface FormData {
  real_name: string
  store_id: string
  mobile: string
}
export interface FormList {
  name: string
  store_id: string
}

// 项目分类列表
export const searchProjectCateApi = (data: { pid: number }): Promise<IResponse> => {
  return request.post({ url: '/select/item_cate', data })
}
// 产品分类列表
export const searchProductCateApi = (data: { pid?: number; id?: number }): Promise<IResponse> => {
  return request.post({ url: '/select/product_cate', data })
}
// 用户列表
export const searchUserApi = (data: Partial<FormData>): Promise<IResponse> => {
  return request.post({ url: '/select/user', data })
}

// 加盟店列表
export const searchStoreApi = (data: Partial<FormList>): Promise<IResponse> => {
  return request.post({ url: '/select/store', data })
}
